home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / internet / wlpr12.zip / WLPR.TXT < prev   
Text File  |  1996-01-01  |  6KB  |  147 lines

  1. WLPR is an implementation of a BSD Unix LPR client. This allows a PC
  2. runnig Windows 95, Window 3.1 or Windows For Workgroups to send files
  3. over TCP/IP to a printer for printing. WLPR does no formating, a file
  4. must be written containing the correct instructions for the printer. 
  5. This is typically done by selecting the correct printer type and the
  6. "print to file" option in the application that created the document.
  7.  
  8. Once a file is created it can be sent to the printer either by dragging
  9. and dropping it on the WLPR window or icon or using the Windows 95
  10. sendto feature.
  11.  
  12. In Windows 95, files cannot be dropped directly on the task bar.
  13. Instead if a file is dragged over an icon on the task bar and held there
  14. for a second or two the application window represented by the icon
  15. is expanded. The window can be anywhere on the screen and you must now
  16. move the mouse to the windows location. However, WLPR automatically
  17. moves the mouse when the its window is restored so all you need to do
  18. is drop the files.
  19.  
  20. WLPR makes use of an INI file in the WINDOWS directory. Currently the
  21. WLPR.INI file looks something like this:
  22.  
  23.     [DEFAULT]
  24.     PRINTER_HOST_NAME="pinetop"
  25.     PRINTER_NAME="JetDirect1"
  26.     USER_NAME="Noah_Davids"
  27.     DEBUG=0
  28.     DELAY=1
  29.  
  30.     [Version]
  31.     Version=1.2 - 1/1/96
  32.     Copyright=Copyright Noah Davids 1995
  33.  
  34. The DEFAULT section contains the information used to control the print
  35. request.
  36.  
  37. PRINTER_HOST_NAME is the name of the host running the LP
  38. daemon. It may be another conputer or a network aware printer. Currently,
  39. it must be a name that will be resolved by looking it up in a host
  40. table or with a query to a domain name server. It cannot be an IP address.
  41.  
  42. PRINTER_NAME is the name of the printer. Network aware printers may or
  43. may not care what name you provide, it will depend on how they are
  44. configured - HOWEVER, a name must be provided for WLPR to use.
  45.  
  46. USER_NAME is the name that you want to use on the header sheet that
  47. is printed before your actual file. How this is printed is dependent
  48. on how the printer host and printer are configured.
  49.  
  50. DEBUG should typically be 0. If it is sent to 1 a great deal of debugging
  51. information will be displayed in message boxes as the program executes. If
  52. its set to 2 you will also get a dialog box containing all the characters
  53. that are sent to the printer.
  54.  
  55. DELAY is the number of seconds that the "Done Printing" message is 
  56. displayed.
  57.  
  58. Percent Complete dialog box:
  59. WLPR displays a dialog box that contains the number of bytes
  60. in the file, the number of bytes read and the number of bytes sent to
  61. the printer host. On a busy network, or with a slow connection to the
  62. printer host its possible for these byte counts to pause for a few seconds.
  63. This is not typically a cause for concern. Once the contents of the file
  64. is sent to the printer host a control file is sent. This file contains
  65. information like your name. The dialog box will display a message indicating 
  66. that the control file is being sent and the bytes sent to the printer will
  67. incremented as the control file is sent. Once the control file is sent the
  68. "Done Printing" message is display for DELAY seconds. Short files can be sent
  69. so fast that its easy to miss this dialog. The "Done Printing" message is used
  70. to make sure that the user has time to see that the file has been printed.
  71.  
  72. Request dialog box:
  73. Wlpr is being released as shareware. as such its expected that if you routinely
  74. use it you will register it. The dialog box is a reminder of that.
  75.  
  76. To register send $25.00 to:
  77.     Noah Davids
  78.     6115 East Surrey Ave.
  79.     Scottsdale, AZ  85254
  80.  
  81. Please include the Wlpr version and where you got it from.
  82.  
  83. Questions can be sent to the above address or via email to:
  84.     Noah_Davids@vos.stratus.com
  85.  
  86. Error handling:
  87. There are many reasons for either TCP or the printer host to return an
  88. error. If any error is returned the print request is aborted. Errors
  89. from the WinSocket subsytem are reported numerically. The following
  90. table can be used to interpret them. Errors returned from the printer
  91. host are more cryptic and typically are just a "message not acknowledged"
  92. indication. If you get one of these errors try again in a few seconds.
  93. If the error persists talk to someone who is in change of the printer
  94. and the printer host to make that it is functioning correctly.
  95.  
  96. code        meaning
  97. 10004    interrupted system call
  98. 10009    bad file number
  99. 10013    permission denied
  100. 10014    bad address
  101. 10022    invalid argument
  102. 10024    too many open files
  103. 10035    operation would block
  104. 10038    socket operation on nonsocket
  105. 10039    destination address required
  106. 10040    message too long
  107. 10041    protocol wrong type for socket
  108. 10042    protocol not available
  109. 10043    protocol not supported
  110. 10044    socket type not supported
  111. 10045    operation not supported on socket
  112. 10046    protocol family not supported
  113. 10047    address family not supported
  114. 10048    address already in use
  115. 10049    cannot assign requested address
  116. 10050    network is down
  117. 10051    network is unreachable
  118. 10052    network dropped connection on rest
  119. 10053    software caused connection abort
  120. 10054    connection reset by peer
  121. 10055    no buffer space available
  122. 10056    socket is already connected
  123. 10057    socket is not connected
  124. 10058    cannot send after socket shutdown
  125. 10059    too many references: cannot splice
  126. 10060    connection timed out
  127. 10061    connection refused
  128. 10062    too many levels of symbolic links
  129. 10063    file name too long
  130. 10064    host is down
  131. 10065    no route to host
  132. 10066    directory not empty
  133. 10067    too many processes
  134. 10068    too many users
  135. 10069    disk quota exceeded
  136. 10070    Stale NFS file handle
  137. 10071    too many levels of remote path
  138. 10091    network subsystem is unusable
  139. 10092    WinSock DLL cannot support this application
  140. 10093    WinSock not initialized
  141. 10101    disconnect
  142. 11001    host not found
  143. 11002    nonauthoritative host not found
  144. 11003    nonrecoverable error
  145. 11004    valid name, no data record of requested type
  146.  
  147.